<%@ taglib prefix="s" uri="/struts-tags" %>

<script language="javascript">
  
       function populate(user){
    	   document.getElementById('username').value = user;
    	   document.getElementById('password').value = user;
    	   document.forms[0].submit();
       }
</script>

<a href="javascript:populate('pepgal')">Admin</a><br>
<a href="javascript:populate('user')">User</a><br>

<s:form action="login" namespace="/auth">
  <s:actionerror  />
  <s:textfield id="username" name="username" key="users.username" ></s:textfield>
  <s:password id="password" name="password" key="users.password" ></s:password>
  <s:submit key="users.login" ></s:submit>
</s:form>


